{extend name="../../admin/view/main"}

{block name="content"}

<div class="layui-tab layui-tab-card think-bg-white">

    <div class="layui-tab-content">

        {include file='log/index_search'}

        <table class="layui-table margin-top-10" lay-skin="line">
            {notempty name='list'}
            <thead>
            <tr>
                <th class='list-table-check-td think-checkbox'>
                    <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
                </th>
                <!-- <th class='list-table-sort-td'>
                    <button class="layui-btn layui-btn-xs" data-reload type="button">刷 新</button>
                </th> -->
                <th class='text-left nowrap'>账单ID</th>
                <th class='text-left nowrap'>关联订单</th>
                <th class='text-left nowrap'>账单类型</th>
                <th class='text-left nowrap'>金额（元）</th>
                <th class='text-left nowrap'>收支类型</th>
                <th class='text-left nowrap'>结清时间</th>
                <th class='text-left nowrap'>店铺名称</th>
                <th></th>
            </tr>
            </thead>
            {/notempty}
            <tbody>
            {foreach $list as $key=>$vo}
            <tr>
                <td class='list-table-check-td think-checkbox'>
                    <label><input class="list-check-box" type='checkbox' value='{$vo.order_id}'></label>
                </td>

                <td class='nowrap'>
                    <div class="inline-block text-top sub-span-blue">
                        <span>{$vo.backed_id|default='--'}</span>
                    </div>
                </td>
                <td class='nowrap'>
                    <div class="inline-block text-top sub-span-blue">
                        <a data-open="{:url('admin/order/index')}?order_id={$vo.order_id}">{$vo.order_id|default='--'}</a>

                    </div>
                </td>
                <td class='nowrap'>
                    <div class="inline-block text-top sub-span-blue">
                        <span>{$debtType[$vo.bill_type]|default='--'}</span>
                    </div>
                </td>
                <td class='nowrap'>
                    <div class="inline-block text-top sub-span-blue">
                        <span>{$vo.payment_amount|default='--'}</span>
                    </div>
                </td>
                <td class='nowrap'>
                    <span class="layui-badge layui-bg-gray layui-border-red">{$vo.bill_type == 11 ? '支出' : '收入'}</span>
                </td>
                <td >
                    {$vo.gmt_created|default='--'}
                </td>
                <td class='nowrap'>
                    <div class="notselect margin-top-5">
                        <span class="layui-badge layui-bg-gray layui-border-red">{$vo.shop_name}</span>
                    </div>
                </td>
            </tr>
            {/foreach}
            </tbody>
        </table>
        {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
    </div>
    <script>form.render()</script>
</div>
{/block}
